package com.ruoyi.web.controller.wxqy.mobile;

import com.ruoyi.common.constant.ErrorConstants;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.utils.NumberUtils;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author : hcl
 * @Date : 2023/8/16 11:13
 */
@RestController
@RequestMapping("/wxqy/mobile/")
public class WeixinQiyeController {

    @GetMapping("/friend/qrcode/{teamId}/{id}")
    public AjaxResult qrcodeFriend(@PathVariable Long teamId, @PathVariable Long id) {
        if (!NumberUtils.isTrue(id) || !NumberUtils.isTrue(teamId)) {
            return AjaxResult.error(ErrorConstants.PARAMS_ERR);
        }
        return AjaxResult.success();
    }
}
